package com.librarydemo.demo.entity;

public class Book {
    private int bid;
    private int cid;
    private String name;
    private String author;
    private String publisher;
    private int total_num;
    private int remain_num;
    private double price;
    private String created_at;
    private String updated_at;

    public Book() {
    }

    public Book(int bid, int cid, String name, String author, String publisher, int total_num, int remain_num, double price, String created_at, String updated_at) {
        this.bid = bid;
        this.cid = cid;
        this.name = name;
        this.author = author;
        this.publisher = publisher;
        this.total_num = total_num;
        this.remain_num = remain_num;
        this.price = price;
        this.created_at = created_at;
        this.updated_at = updated_at;
    }

    public int getBid() {
        return bid;
    }

    public void setBid(int bid) {
        this.bid = bid;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public int getTotal_num() {
        return total_num;
    }

    public void setTotal_num(int total_num) {
        this.total_num = total_num;
    }

    public int getRemain_num() {
        return remain_num;
    }

    public void setRemain_num(int remain_num) {
        this.remain_num = remain_num;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getCreated_at() {
        return created_at;
    }

    public void setCreated_at(String created_at) {
        this.created_at = created_at;
    }

    public String getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(String updated_at) {
        this.updated_at = updated_at;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bid=" + bid +
                ", cid=" + cid +
                ", name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", publisher='" + publisher + '\'' +
                ", total_num=" + total_num +
                ", remain_num=" + remain_num +
                ", price=" + price +
                ", created_at='" + created_at + '\'' +
                ", updated_at='" + updated_at + '\'' +
                '}';
    }
}
